package use;

import Util.JavaUtil01;

import java.sql.ResultSet;
import java.sql.SQLException;

public class bookSelect {
    public static void main(String[] args) throws SQLException {
        String sql="select * from books";
        Object[] o={};
        ResultSet re= JavaUtil01.excuteQuery(sql,o);
        while (re.next()){
            System.out.println("书名为"+re.getObject("bookName")+"剩余数量为"+re.getObject("bookCounts"));
        }
        JavaUtil01.close();

    }
}
